home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- vectorpar.device/PIOCMD_ACTIVE
- vectorpar.device/PIOCMD_INACTIVE
- vectorpar.device/PIOCMD_ACTIVE vectorpar.device/PIOCMD_ACTIVE
-
- NAME
- PIOCMD_Active -- restarts the device related activities of the chip
-
- FUNCTION
- This command returns a parallel channel back to the active ('normal') state.
-
- IO REQUEST
- io_Message mn_ReplyPort initialized
- io_Device preset by OpenDevice
- io_Unit preset by OpenDevice
- io_Command PIOCMD_ACTIVE (0C)
-
- RESULT
- io_Error -- 0 if Unit was restarted.
- ParErr_NotOpen if Unit was not inactive.
-
- NOTES
- If the Unit is restarted, then the unit is re-initialized. So don't
- expect your queued requests to be executed. You should definitely
- not mix normal device access and this Active/Inactive access without
- a CloseDevice()/OpenDevice() sequence in between.
-
- This is not a nesting call. One PIOCMD_Active will end all PIOCMD_INACTIVE
- Calls.
-
- SEE ALSO
- vectorpar.device/PIOCMD_INACTIVE
-
- vectorpar.device/PIOCMD_INACTIVE vectorpar.device/PIOCMD_INACTIVE
-
- NAME
- PIOCMD_Inactive -- renders the parallel unit inactive and returns
- pointer to chip and unit.
-
- FUNCTION
- This command allows the caller to set a channel into 'inactive' mode.
- After calling this function you can bang the hardware of the channel
- for e.g. parallel SANA II drivers or digitizer hardware.
-
- IO REQUEST
- io_Message mn_ReplyPort initialized
- io_Device preset by OpenDevice
- io_Unit preset by OpenDevice
- io_Command PIOCMD_INACTIVE (0B)
-
- RESULT
- io_Length -- points to the base address of the chip
- io_Actual -- points to the relative base of the unit
-
- NOTES
- Your channel will be Interrupt-Disabled; you can bang the hardware as
- much as you want. You can use the chip-interrupt (The chip can generate
- a PORTS interrupt), but you must add your Interrupt node to the handler
- chain at priority 11 or above. (The interrupt node is currently at
- Priority 0, *but this can change up to Priority 10*, so be warned.
-
- You should definitely read an 68230 Hardware manual before starting to
- to program the chip.
-
- You will get two pointers for the chip:
-
- a) a pointer to the chip base. This can be an odd value, so don't
- try word or long accesses to the chip. You can also use the pio
- structure from vector/vectorpar_hard.h
-
- b) a pointer to the unit of the chip. This can be an odd value, too.
- This is a pointer to the DDR of a channel. All other channel related
- registers can be accessed relative to this address. You can also use
- the pchannel structure from the vector/vectorpar_hard.h includefile.
-
- The chip is (due to its 8 Bit heritage) only on one kind of adresses
- (even or odd), so you will have a pad-byte between two registers.
-
- BUGS
- This is not a nesting call. If you call it once, every other command
- will fail with ParErr_DevBusy.
-
- SEE ALSO
- vectorpar.device/PIOCMD_ACTIVE
-
-